package com.outstanding.his.doctor.service.impl;

import java.util.Collection;

import com.outstanding.his.doctor.dao.IDoctorDao;
import com.outstanding.his.doctor.domain.Doctor;
import com.outstanding.his.doctor.service.IDoctorService;

public class DoctorService implements IDoctorService {

	private IDoctorDao doctorDao;

	public void setDoctorDao(IDoctorDao doctorDao) {
		this.doctorDao = doctorDao;
	}

	@Override
	public Doctor submitDoctor(Doctor doctor) {
		return this.doctorDao.submitDoctor(doctor);
	}

	@Override
	public Doctor getDoctor(Integer doctorId) {
		Doctor doctor = this.doctorDao.getDoctor(doctorId);
		return doctor;
	}

	@Override
	public Collection<Doctor> getDoctorList() {
		return this.doctorDao.getDoctorList();
	}

	@Override
	public Doctor updateDoctor(Doctor doctor) {
		return this.doctorDao.updateDoctor(doctor);
	}

	@Override
	public Doctor loginDoctor(Doctor doctor) {
		return this.doctorDao.loginDoctor(doctor);
	}

}
